/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Control;
import javax.swing.table.*;

/**
 *
 * @author GAMA
 */
public class MiModeloCompraBoleta extends DefaultTableModel{

   int col=0;
   boolean habilitar = false;
   boolean deshabilitar = false;


   public boolean isCellEditable (int row, int column)
   {
       // Aquí devolvemos true o false según queramos que una celda
       // identificada por fila,columna (row,column), sea o no editable
      /* if ((column <= col) && (deshabilitar))
          return false;
       if ((column <= (col - 1)) && (habilitar))
          return false;*/
       if(column==0 || column ==1 || column ==3){
           return true;
       }

       return false;
   }
/*
   public boolean ponervalor(int valor){
       this.col = valor;
       this.habilitar = true;
       return this.isCellEditable(0,0);

   }

   public boolean quitarvalor(int valor){
       this.col = valor;
       this.deshabilitar = true;
       return this.isCellEditable(0,0);

   }


   public MiModelo(){
       super(4,4);
   }*/
   // private static final Logger log= Logger.getLogger("MiModelo");
}